package bfgca;
import java.util.*;

public class Dice {  
  
  static int roll(int numDie, int sides){
    Random numGen = new Random();
    int result = 0;
    for(int i = 0; i < numDie; i++){
      result += (numGen.nextInt(sides)+1);
    }
    return result;
  }
  
}
